import axios from './http'

export function addBrand(brand) {
    return axios.post('/brand/add', brand)
}

export function deleteBrand(id){
    return axios.post('/brand/delete',{id})
}

export function updateBrand(brand){
    return axios.post('/brand/update',brand)
}
export function queryAll() {
    return axios.get('/brand/queryAll')
}

export function queryBrandByName(name) {
    return axios.get('/brand/queryByName' + '?name=' + name)
}